package com.scau.meetingbook.service;

import com.scau.meetingbook.dto.MeetingRoomDTO;
import com.scau.meetingbook.dto.MeetingRoomsDTO;
import com.scau.meetingbook.dto.MeetingRoomDTO;
import com.scau.meetingbook.pojo.MeetingRooms;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scau.meetingbook.vo.ResultVO;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public interface MeetingRoomsService extends IService<MeetingRooms> {

    ResultVO<MeetingRooms> getMeetingRoomsById(Integer id) throws Exception;

    ResultVO deleteMeetingRoomsById(Integer id) throws Exception;

    ResultVO<List<MeetingRoomsDTO>> getMeetingRooms(Date date, String startTime, String endTime, Integer personNum, String type, ArrayList<Integer> equipmentIds) throws ParseException;

    ResultVO<List<MeetingRooms>> getAllMeetingRoomsStatus();

    ResultVO changeMeetingRoomsStatus(Integer roomId, String status);
    ResultVO insertMeetingRooms(MeetingRoomDTO meetingRoomDTO);
    public ResultVO updateMeetingRoomsById(MeetingRoomDTO meetingRoomDTO);
    ResultVO<List<MeetingRoomsDTO>> getAllMeetingRooms();
}